﻿using Microsoft.Extensions.DependencyInjection;
using ParkManagement.Domain;
using Volo.Abp.Modularity;

namespace ParkManagement.EntityFrameworkCore
{
    [DependsOn(
        typeof(ParkManagementDomainModule)
        )]
    public class ParkManagementEntityFrameworkCoreModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddAbpDbContext<ParkManagementDbContext>(options =>
            {
                options.AddDefaultRepositories(true);
            });
        }
    }
}